package com.djzhou.gmms.model.user;

import java.util.Date;

import com.djzhou.gmms.model.company.TbCompany;
import com.djzhou.gmms.model.department.TbDepartment;
import com.djzhou.gmms.model.entity.Entity;
import com.djzhou.gmms.model.position.TbPosition;
import com.djzhou.gmms.model.role.TbRole;

public class TbUser extends Entity{


	private Integer userId;//用户ID
	private String loginName;//登录名
	private String loginPwd;//密码
	private String expressPwd;//明文密码
	private String realName;//真实姓名
	private String identityCard;//身份证
	private String userNo;//用户编码
	private String userEmail;//email
	private String userNickname;//昵称
	private String userCreateWay;//用户创建方式
	private String userBirthday;//生日
	private String userConstellation;//用户星座
	private String userAge;//年龄
	private String userPhone;//电话
	private String userQq;//QQ
	private String userAddress;//地址
	private String userSex;//性别
	private String otherInfo;//其他信息
	private String remark;//备注
	private Date createTime;//创建时间
	private Date lastModifyTime;//最后修改时间
	private Integer deleteFlag;//删除标识
	private Integer opUser;//操作人
	private String backupData;//备份数据
	private Integer userState;//用户状态 1正常 0禁用
	private Integer updateLogVersion;//当前用户更新日志版本号
	
	private TbCompany company;//所属公司
	private TbDepartment department;//所属部门
	private TbPosition position;//所属职位
	private Date joinTime;//入职时间
	private Integer positionState;//在职状态
	
	
	private Integer areaId;//所属区域ID
	private String areaName;//所属区域名称
	
	private TbRole mainRole;//主角色对象
	private Integer driverFlag;//架驶员是被占用  0示 1是
	

	public TbCompany getCompany() {
		return company;
	}

	public void setCompany(TbCompany company) {
		this.company = company;
	}

	public TbDepartment getDepartment() {
		return department;
	}

	public void setDepartment(TbDepartment department) {
		this.department = department;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getLoginPwd() {
		return this.loginPwd;
	}

	public void setLoginPwd(String loginPwd) {
		this.loginPwd = loginPwd;
	}

	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getIdentityCard() {
		return this.identityCard;
	}

	public void setIdentityCard(String identityCard) {
		this.identityCard = identityCard;
	}

	public String getUserNo() {
		return this.userNo;
	}

	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}

	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public String getUserNickname() {
		return this.userNickname;
	}

	public void setUserNickname(String userNickname) {
		this.userNickname = userNickname;
	}

	public String getUserCreateWay() {
		return this.userCreateWay;
	}

	public void setUserCreateWay(String userCreateWay) {
		this.userCreateWay = userCreateWay;
	}

	public String getUserBirthday() {
		return this.userBirthday;
	}

	public void setUserBirthday(String userBirthday) {
		this.userBirthday = userBirthday;
	}

	public String getUserConstellation() {
		return this.userConstellation;
	}

	public void setUserConstellation(String userConstellation) {
		this.userConstellation = userConstellation;
	}

	public String getUserAge() {
		return this.userAge;
	}

	public void setUserAge(String userAge) {
		this.userAge = userAge;
	}

	public String getUserPhone() {
		return this.userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserQq() {
		return this.userQq;
	}

	public void setUserQq(String userQq) {
		this.userQq = userQq;
	}

	public String getUserAddress() {
		return this.userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	public String getUserSex() {
		return this.userSex;
	}

	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}

	public String getOtherInfo() {
		return this.otherInfo;
	}

	public void setOtherInfo(String otherInfo) {
		this.otherInfo = otherInfo;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastModifyTime() {
		return this.lastModifyTime;
	}

	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public Integer getDeleteFlag() {
		return this.deleteFlag;
	}

	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public Integer getOpUser() {
		return this.opUser;
	}

	public void setOpUser(Integer opUser) {
		this.opUser = opUser;
	}

	public String getBackupData() {
		return this.backupData;
	}

	public void setBackupData(String backupData) {
		this.backupData = backupData;
	}

	public Integer getUserState() {
		return userState;
	}

	public void setUserState(Integer userState) {
		this.userState = userState;
	}
	public TbPosition getPosition() {
		return position;
	}

	public void setPosition(TbPosition position) {
		this.position = position;
	}

	public Date getJoinTime() {
		return joinTime;
	}

	public void setJoinTime(Date joinTime) {
		this.joinTime = joinTime;
	}

	public Integer getPositionState() {
		return positionState;
	}

	public void setPositionState(Integer positionState) {
		this.positionState = positionState;
	}

	public Integer getAreaId() {
		return areaId;
	}

	public void setAreaId(Integer areaId) {
		this.areaId = areaId;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	public TbRole getMainRole() {
		return mainRole;
	}

	public void setMainRole(TbRole mainRole) {
		this.mainRole = mainRole;
	}
	
	public Integer getDriverFlag() {
		return driverFlag;
	}

	public void setDriverFlag(Integer driverFlag) {
		this.driverFlag = driverFlag;
	}

	public Integer getUpdateLogVersion() {
		return updateLogVersion;
	}

	public void setUpdateLogVersion(Integer updateLogVersion) {
		this.updateLogVersion = updateLogVersion;
	}

	public String getExpressPwd() {
		return expressPwd;
	}

	public void setExpressPwd(String expressPwd) {
		this.expressPwd = expressPwd;
	}
	

}